﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;

namespace ProtoTypeShooter
{
    class Enemy
    {
        Texture2D texture;
        public Vector2 position;
        public double timeDead;

        public Enemy(Texture2D enemyTexture,Vector2 origin)
        {
            texture = enemyTexture;
            position = origin;
        }
        public void setTexture(Texture2D newTexture)
        {
            texture = newTexture;
        }

        public void die(GameTime gameTime)
        {
            timeDead = gameTime.TotalGameTime.TotalMilliseconds ;

        }

        public void draw(SpriteBatch spriteBatch)
        {
            spriteBatch.Draw(texture, position, Color.White);
        }

    }
}
